package com.cisco.pso;

public enum FileType {

	Text, StrutsConfig, JspTag;

	public static FileType typeOf(String fileName) {
		if (fileName.equalsIgnoreCase("struts-config.xml"))
			return StrutsConfig;
		else if (fileName.endsWith(".tag"))
			return JspTag;
		else
			return Text;
	}
}
